package com.service.impl;



import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bean.Receive;
import com.dao.ReceiveMapper;
import com.service.ReceiveService;
@Service
public class ReceiveServiceImpl implements ReceiveService {
	
	@Autowired
    private ReceiveMapper dao;

	public void insert(Receive bean) {
		dao.insertSelective(bean);
	}

	public List<Receive> list(Map<String, Object> map) {
		return dao.list(map);
	}

	public void delete(Integer id) {
		dao.deleteByPrimaryKey(id);
	}

	public Receive selectOne(Integer id) {
		return dao.selectByPrimaryKey(id);
	}

	public void update(Receive bean) {
		dao.updateByPrimaryKeySelective(bean);
	}

	public List<Receive> selectByuid(Integer userid) {
		// TODO Auto-generated method stub
		return dao.selectByuid(userid);
	}

	public List<Receive> selectALL() {
		// TODO Auto-generated method stub
		return dao.selectAll();
	}

	public List<Receive> selectByciduid(Map map) {
		// TODO Auto-generated method stub
		return dao.selectByciduid(map);
	}
	
	


}

